<?php

class ConferencePlan extends TPage
{
	public $user_id;
	
	public function onLoad($params)
	{
		parent::onLoad($params);
		
		$this->user_id = $this->User->getName();
		if($this->Request['id'])
		{
			if($this->User->getIsAdmin() || $this->User->getIsOrganizer())
			{
				$this->user_id = $this->Request['id'];
			}
		}
		
	}

	public function getLanguage()
	{
		if(!$this->Page->getApplication()->Session->contains('language'))
			$this->Page->getApplication()->Session->add('language', 'en');
		return $this->Page->getApplication()->Session->itemAt('language');
	}
}

?>